package org.example.redpacket.model.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import org.example.redpacket.model.ObjDTO;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 红包对象DTO
 *
 * @author: hero生仔
 */
@Data
@Builder
@AllArgsConstructor
@ToString
public class RedPacketActivityDTO extends ObjDTO {

    private Integer id;

    @NotBlank(message = "活动id不能为空")
    private String activityId;

    /**
     * 奖池的总金额
     */
    private BigDecimal amount;

    /**
     * 奖池的剩余金额
     */
    private BigDecimal leftAmount;

    private LocalDate createTime;

    private LocalDate updateTime;
}
